<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<script type="text/javascript" src="./jquery.min.js"></script>
	<script type="text/javascript">
		$.ajax("http://localhost:3001/test",{
		    data: {
		        username: 'hgdqstudio',
		        'password': 123456  //password不加引号显示像一个关键字，所以就嘿嘿…… 
		    },
		    dataType: 'json',
		    type: 'post',  
		    timeout: 10000,   
		    success: function(data){ 
		        console.log(data.msg);
		    },
		    error: function(xhr, type, errerThrown){

		    }
		})
	</script>
</body>
</html>